package com.ruoyi.common.exception;

import lombok.Data;

/**
 * 通知到前端的异常
 *
 * @author gdk
 * @since 2023/5/22 20:42
 */
@Data
public final class NotifyException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private final Integer code = 10000;

    /**
     * 错误提示
     */
    private String message = "请求处理失败";

    public NotifyException(String message) {
        this.message = message;
    }
}
